import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:personinfo/utils/commonUtil.dart';

import '../../widgets/common/CommonWidget.dart';

class AddCircleFriend extends StatefulWidget{
  const AddCircleFriend({super.key});

  @override
  State<StatefulWidget> createState() =>_AddCircleFriend();

}

class _AddCircleFriend extends State<AddCircleFriend>{
  final _formController = GlobalKey<FormState>();
  final _thinkController = TextEditingController();

  @override
  Widget build(BuildContext context) {
    // TODO: implement build
    return Scaffold(
      appBar: commonWidget.appBar(
        title: const Text("新增行情圈") ,
        leading: GestureDetector(onTap: (){Navigator.pop(context);},child: const Icon(Icons.keyboard_arrow_left),),
      ),
      body: Container(
        padding: EdgeInsets.fromLTRB(16, 10, 16, 10),
        child: Form(
          key: _formController,
          child: Column(
            crossAxisAlignment: CrossAxisAlignment.start,
            children: [
              TextField(
                autofocus: true,
                maxLines: 4,
                maxLength: 500,
                controller: _thinkController,
                decoration:  InputDecoration(
                  label: Text("描述：",style: TextStyle(color: Colors.black),),
                  hintText: "请输这一刻的想法入",
                  border: CommonUtil.underline,
                  focusedBorder: CommonUtil.underline,
                ),
              ),
              SizedBox(height: 10,),
              Container(
                padding: EdgeInsets.all(20),
                decoration: BoxDecoration(
                  color: Colors.white, // 背景色
                  border: Border.all(
                    color: Colors.grey, // 边框颜色
                    width: 0.5, // 边框宽度
                  ),
                ),
                child: Icon(Icons.add),
              )
            ],
          ),
        ),
      ),
    );
  }

}